Remove iflag argument to xs_write
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 19 Sep 2005 14:34:30 +0000 (14:34 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 19 Sep 2005 14:34:30 +0000 (14:34 +0000)
commit7fd9bccce28a7f9aaeae9f9fb64c60ee4e2fa013
treec24c858dccf63ea7be0f2406b2615d30d9f7ffe3
parent265d719ce5be2eb71d3a4433b27999350a85e0db
Remove iflag argument to xs_write
xs_write with O_CREAT|O_EXCL causes problems over daemon restarts, since
it's not idempotent.
It turns out noone really needs the flags word at all, so get rid of it.
It's now as if everyone specified "O_CREAT".
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
29 files changed:
tools/blktap/xenbus.c
tools/console/daemon/io.c
tools/python/xen/lowlevel/xs/xs.c
tools/python/xen/xend/xenstore/xsnode.py
tools/python/xen/xend/xenstore/xstransact.py
tools/xenstore/testsuite/01simple.test
tools/xenstore/testsuite/02directory.test
tools/xenstore/testsuite/03write.test
tools/xenstore/testsuite/04rm.test
tools/xenstore/testsuite/05filepermissions.test
tools/xenstore/testsuite/06dirpermissions.test
tools/xenstore/testsuite/07watch.test
tools/xenstore/testsuite/08transaction.slowtest
tools/xenstore/testsuite/08transaction.test
tools/xenstore/testsuite/09domain.test
tools/xenstore/testsuite/10domain-homedir.test
tools/xenstore/testsuite/11domain-watch.test
tools/xenstore/testsuite/12readonly.test
tools/xenstore/testsuite/13watch-ack.test
tools/xenstore/testsuite/14complexperms.test
tools/xenstore/testsuite/15nowait.test
tools/xenstore/testsuite/16block-watch-crash.test
tools/xenstore/xenstored_core.c
tools/xenstore/xs.c
tools/xenstore/xs.h
tools/xenstore/xs_crashme.c
tools/xenstore/xs_random.c
tools/xenstore/xs_stress.c
tools/xenstore/xs_test.c